﻿
module PhotoBlog.Models
{
    export class PagingM {
        public CurrentPage: number;
        public NextPage: number;
        public PrevPage: number;
        public HasNextPage: boolean;
    }
    export class DayPhotoM
    {
        public PhotoM: PhotoM;
        public PagingM: PagingM;
    }
    export class AlbumPhotosViewM
    {
        public Album: AlbumM;
        public Albums: AlbumM[];
        public Photos: PhotoM[];
    }
    export class PhotoM
    {
        public Id: number;
        public Thumbnail: string;
        public Name: string;
        public Path: string;
        public Date: string;
        public Description: string;
        public Day: number;
        public Music: string;
        public Views: number;
    }
    export class MainViewM
    {
        public PhotoM: PhotoM[];
        public Skip: number;
        public Scrolled: boolean;
    }
    export class GetPhotosParams
    {
        public AlbumId: number;
        public Take: number;
        public Skip: number;
        public NumberDay: number;
    }
    export class AlbumM
    {
        public AlbumId: number;
        public Name: string;
        public Description: string;
        public Logo: string;
        public Photos: number;
    }
    export class AlbumViewM
    {
        AlbumMs: AlbumM[];
    }
}